#include "StdAfx.h"
#include ".\guildserversession.h"
#include ".\PacketHandler.h"

GuildServerSession::GuildServerSession(void)
{
}

GuildServerSession::~GuildServerSession(void)
{
}

VOID GuildServerSession::OnRecv( BYTE * pMsg, WORD wSize )
{
	PacketHandler::Instance()->ParsePacket( PACKET_HANDLER_GUILD, this, (MSG_BASE *)pMsg, wSize );
}


VOID GuildServerSession::DBResult( BYTE cate, BYTE ptcl, QueryResult * pData )
{
	MSG_DBPROXY_RESULT msg;
	msg.m_byCategory	= cate;
	msg.m_byProtocol	= ptcl;
	msg.m_pData			= pData;
	PacketHandler::Instance()->ParsePacket( PACKET_HANDLER_GUILD, this, &msg, sizeof(MSG_DBPROXY_RESULT) );

}